home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Online / MiamiSSL / Install_MiamiSSL < prev    next >
Text File  |  1997-05-02  |  3KB  |  144 lines

  1. (procedure check-system-version
  2.  (set exec-version (/ (getversion) 65536))
  3.  (if (< exec-version 37)
  4.   (abort "MiamiSSL needs Kickstart 2.04 or higher.\n")
  5.  )
  6.  (if (< exec-version 39)
  7.   (set ag-browser "AmigaGuide")
  8.   (set ag-browser "MultiView")
  9.  )
  10. )
  11.  
  12. (procedure select-destination-directory
  13.  (set @default-dest "Miami:")
  14. )
  15.  
  16. (procedure select-lib
  17.  (set lib-choice
  18.   (askchoice
  19.    (prompt "Please select which version of\nthe encryption library you want to use:")
  20.    (help "There are two MiamiSSL encryption,one\nfor users within the USA/Canada and one\n"
  21.     "for all other users.")
  22.    (choices "US/Canadian version" "International version")
  23.   )
  24.  )
  25. )
  26.  
  27. (procedure check-registered
  28.  (set is-registered (exists (tackon @default-dest "Miami.key2")))
  29.  (if (not is-registered)
  30.   (abort "MiamiSSL needs the registered version of Miami 2.1")
  31.  )
  32. )
  33.  
  34. (procedure check-library
  35.  (set bin-choice
  36.   (select lib-choice
  37.    "miamisslusa.library"
  38.    "miamisslintl.library"
  39.   )
  40.  )
  41.  (if (not (exists (tackon @default-dest (cat "Libs/orig" bin-choice))))
  42.   (abort "Before you can install MiamiSSL you first need to\n"
  43.    "get one of the encryption library. Please see the\n"
  44.    "included README_ssl.txt file for more information.")
  45.  )
  46. )
  47.  
  48. (procedure copy-files
  49.   (if (not (exists (tackon @default-dest "Libs")))
  50.    (makedir (tackon @default-dest "Libs"))
  51.   )
  52.   (if (exists (tackon @default-dest (cat "Libs/" bin-choice)))
  53.    (delete (tackon @default-dest (cat "Libs/" bin-choice)) force)
  54.   )
  55.   (select lib-choice
  56.    (
  57.     (run (cat "\"" (tackon source-dir "spatch") "\" -oMiami:libs/miamisslusa.library \"-p"
  58.      (tackon source-dir "miamisslusa.pch") "\" Miami:libs/origmiamisslusa.library"))
  59.    )
  60.    (
  61.     (copyfiles
  62.      (source (tackon @default-dest (cat "Libs/orig" bin-choice)))
  63.      (dest (tackon @default-dest "Libs"))
  64.      (newname bin-choice)
  65.     )
  66.    )
  67.   )
  68.   (if (not (exists (tackon @default-dest "SSL")))
  69.    (makedir (tackon @default-dest "SSL"))
  70.   )
  71.   (if (not (exists (tackon @default-dest "SSL/certs")))
  72.    (makedir (tackon @default-dest "SSL/certs"))
  73.   )
  74.   (if (not (exists (tackon @default-dest "SSL/lib")))
  75.    (makedir (tackon @default-dest "SSL/lib"))
  76.   )
  77.   (if (not (exists (tackon @default-dest "SSL/private")))
  78.    (makedir (tackon @default-dest "SSL/private"))
  79.   )
  80.   (copyfiles
  81.    (source (tackon source-dir "certs"))
  82.    (dest (tackon @default-dest "SSL/certs"))
  83.    (all)
  84.   )
  85.   (copyfiles
  86.    (source (tackon source-dir "cert.pem"))
  87.    (dest (tackon @default-dest "SSL"))
  88.   )
  89.   (copyfiles
  90.    (source (tackon source-dir "ssl.config"))
  91.    (dest (tackon @default-dest "SSL/lib"))
  92.   )
  93.   (copyfiles
  94.    (source (tackon source-dir "MiamiSSLCiphers"))
  95.    (dest @default-dest)
  96.   )
  97.   (copyfiles
  98.    (source (tackon source-dir "MiamiSSLVersion"))
  99.    (dest @default-dest)
  100.   )
  101.   (if (not (exists "ENV:MIAMI"))
  102.    (makedir "ENV:MIAMI")
  103.   )
  104.   (if (not (exists "ENVARC:MIAMI"))
  105.    (makedir "ENVARC:MIAMI")
  106.   )
  107.   (textfile
  108.    (dest "ENV:MIAMI/SSLLIB")
  109.    (append (tackon @default-dest (tackon "Libs/" bin-choice)))
  110.   )
  111.   (copyfiles
  112.    (source "ENV:MIAMI/SSLLIB")
  113.    (dest "ENVARC:MIAMI")
  114.   )
  115. )
  116.  
  117. ;;;; Start
  118.  
  119. (welcome "Welcome to the MiamiSSL installation.\n")
  120.  
  121. (set app-name "MiamiSSL")
  122.  
  123. (check-system-version)
  124.  
  125. (complete 0)
  126.  
  127. (set source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon))
  128.  (expandpath @icon))
  129. )
  130.  
  131. (select-destination-directory)
  132.  
  133. (check-registered)
  134.  
  135. (select-lib)
  136.  
  137. (check-library)
  138.  
  139. (complete 75)
  140.  
  141. (copy-files)
  142.  
  143. (complete 100)
  144.